import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class PlaylistDetailPage extends StatelessWidget {
  const PlaylistDetailPage({super.key, required this.pid});
  final String pid;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          elevation: 0,
          leading: BackButton(
            onPressed: () => GoRouter.of(context).go("/playlists"),
          ),
          title: const Text("详情"),
        ),
        body: Container(
          color: Colors.lightGreen,
          child: Center(
            child: Text(
              pid,
              style: const TextStyle(
                  color: Colors.white,
                  fontSize: 25,
                  fontWeight: FontWeight.bold
              ),
            ),
          ),
        ),
    );
  }
}
